package com.maizhi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.maizhi.dao.ImpDao;
import com.maizhi.hr.model.imgConfig;
import com.maizhi.hr.model.txtConfig;
import com.maizhi.service.impService;

public class impServiceImpl extends BaseServiceImpl implements impService {
	
	ImpDao impDao;

	public ImpDao getImpDao() {
		return impDao;
	}

	@Autowired
	public void setImpDao(ImpDao impDao) {
		this.impDao = impDao;
	}

	@Transactional
	public String imgImp(imgConfig img) {
		impDao.save(img);
		return img.getSheetName();
	}

	@Transactional
	public String txtImp(txtConfig txt) {
		impDao.save(txt);
		return txt.getSheetName();
	}

}
